using System;
using System.Collections.Generic;
using System.Text;

namespace jsonReader
{
    public class JsonString : IJsonValue
    {
        public JsonString()
        {

        }

        public JsonString(string value)
        {
            this.value = value;
        }

        private string value;
        public string Value
        {
            get
            {
                return value;
            }
            set
            {
                this.value = value;
            }
        }

       #region IJsonValue Members


        public string ToJsonString() {
            return String.Format("\"{0}\"", value);
        }

        #endregion

        /// <returns>A <see cref="T:System.String"></see> that represents the current <see cref="T:System.Object"></see>.</returns>
        public override string ToString() {
            return ToJsonString();
        }
    }
}
